<?php
include("mpdf/mpdf.php");
$mpdf=new mPDF('s');
$mpdf->SetDisplayMode('fullpage');
$html = file_get_contents("test.html");
//$mpdf->dpi="300";
$mpdf->WriteHTML($html);   // Separate Paragraphs  defined by font
$content = $mpdf->Output("", "S");

header("Content-type:application/pdf");
// It will be called downloaded.pdf
header("Content-Disposition:attachment;filename=flyer.pdf");
echo $content;
?>